import React from "react";
import { IdSelect } from "./idSelect";
import { useTaskTypes } from "../utils/taskType";

export default function TaskTypeSelect(
  props: React.ComponentProps<typeof IdSelect>
) {
  const { data: taskTypes } = useTaskTypes();
  return <IdSelect options={taskTypes || []} {...props} />;
}
